﻿/*
 * Created by SharpDevelop.
 * User: tdptcj
 * Date: 19/09/2011
 * Time: 21:51
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;

namespace MetaVideoEditorEvolved.UI.Helper
{
	/// <summary>
	/// Description of EntityUiHelper.
	/// </summary>
	public class EntityUiHelper
	{
		public EntityUiHelper()
		{
		}
		
		public static mveEngine.Entity RetrieveEntityType(MetaVideoEditorEvolved.UI.Entity.MediaItemBaseEntity media)
		{
			if (media is MetaVideoEditorEvolved.UI.Entity.MovieMediaItem) {
				return mveEngine.Entity.Movie;
			}
			
			if (media is MetaVideoEditorEvolved.UI.Entity.EpisodeMediaItem) {
				return mveEngine.Entity.Episode;
			}
			
			if (media is MetaVideoEditorEvolved.UI.Entity.FolderMediaItem) {
				return mveEngine.Entity.Folder;
			}
			
			if (media is MetaVideoEditorEvolved.UI.Entity.SeasonMediaItem) {
				return mveEngine.Entity.Season;
			}
			
			if (media is MetaVideoEditorEvolved.UI.Entity.SerieMediaItem) {
				return mveEngine.Entity.Series;
			}
			
			return mveEngine.Entity.Series;
		}
	}
}
